home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / pmake / RCS / linksprite.mk,v < prev    next >
Encoding:
Text File  |  1988-08-20  |  1.2 KB  |  59 lines

  1. head     1.1;
  2. access   ;
  3. symbols  ;
  4. locks    ; strict;
  5. comment  @@;
  6.  
  7.  
  8. 1.1
  9. date     88.03.24.19.47.13;  author deboor;  state Exp;
  10. branches ;
  11. next     ;
  12.  
  13.  
  14. desc
  15. @Makefile with rules for linking in sprite (ARCHAIC)
  16. @
  17.  
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @#
  26. # Rules for linking Sprite programs.
  27. #
  28. # LINKSPRITE is for programs being linked to run under Sprite
  29. # LINKCOMPAT is for programs being linked to run under UNIX.
  30. #
  31. # For both of these, the program should have all of its object files
  32. # and libraries for sources.
  33. #
  34. # To use, do something like this:
  35. #
  36. # fish : fish.o -lm LINKSPRITE
  37. #
  38. # fish.o will be compiled (with -I/sprite/lib/include and -m68010 in effect
  39. # by default) and then linked with the math library and Sprite C library to
  40. # form 'fish'.
  41. #
  42. # Header sources may be given as 'fs.h', 'dev/pdev.h', etc.
  43. #
  44. #ifndef LDFLAGS
  45. LDFLAGS    =
  46. #endif LDFLAGS
  47. CFLAGS += -I/sprite/lib/include -I/sprite/att/lib/include -m68010
  48.  
  49. .PATH.h:    /sprite/lib/include /sprite/att/lib/include
  50. .PATH.a:    /sprite/lib /sprite/att/lib
  51. .PATH.ln:    /sprite/lib/lint
  52.  
  53. LINKSPRITE:    .USE -lc
  54.     ld -e start -o $(.TARGET) $(LDFLAGS) $(.ALLSRC)
  55.  
  56. LINKCOMPAT:    .USE /sprite2/users/sprite/compat/libcompat.a
  57.     $(CC) -o $(.TARGET) $(LDFLAGS) $(.ALLSRC)  /lib/libc.a
  58. @
  59.